Skip to content

Train V2#47

Draft
arentant wants to merge 283 commits intodevfrom
main-v2
Draft

Train V2#47
arentant wants to merge 283 commits intodevfrom
main-v2

Conversation

@arentant
Copy link
Contributor

@arentant arentant commented Feb 5, 2026

No description provided.

@vercel
Copy link

vercel bot commented Feb 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
trainapp Ready Ready Preview Mar 16, 2026 0:27am
trainapp-monorepo Ready Ready Preview, Comment Mar 16, 2026 0:27am

Request Review

yasha-meursault and others added 28 commits February 9, 2026 20:50
- Removed the FeeProvider context and associated logic from the application.
- Updated components to directly use the new `useQuoteData` hook for fetching fee quotes.
- Adjusted the `SwapForm`, `FeeDetailsComponent`, and related components to accommodate the new fee handling approach.
- Enhanced the `DetailedEstimates` component to accept quote data directly, improving data flow and reducing unnecessary context dependencies.
- Cleaned up imports and ensured all components are aligned with the new structure.
…ay logic

- Replaced the deprecated FeeDetailsComponent with a new QuoteDetails component that utilizes an accordion for better UI/UX.
- Integrated detailed fee calculations and display, including gas fees in USD and formatted fee amounts.
- Updated the SwapForm to use the new QuoteDetails component, ensuring seamless integration with existing functionality.
- Cleaned up imports and improved overall code structure for maintainability.
…ollapsableHeader components to utilize resolveTokenLogoUrl utility for improved consistency and maintainability.
Bring  route picker and fee fetching mechanism from layerswap, resolves FRONT-876 FRONT-879
Bring Address class to TRAIN, resolves FRONT-877
…s, and Details components to utilize NetworkSettings for improved maintainability and consistency.
Improve login logic, improve ui and handle the custom chain flow in login
…improve structure. Introduce TokenBalanceError type for better error management, update BalanceProvider for improved balance fetching, and streamline WalletProvider with new SelectAccountProps. Remove unused CurrencyFormField and NetworkFormField components for cleaner codebase.
…ngs and LayerSwapSettings. Update Network and Route components to use new TrainAppSettings and TrainSettings. Adjust RoutePicker and related components for compatibility with the new structure.
…nd functionality. Update VaulDrawer to support 'fitHeight' mode, enhance snap point handling, and streamline rendering logic. Adjust SummaryRow styles for cleaner layout.
… improve code clarity. Update createPreHTLC to createHTLC, add rewardRecipient and rewardToken fields in Commit type, and streamline AtomicChat actions by removing unused components and adjusting state management for better handling of solver locks and refunds.
yasha-meursault and others added 5 commits March 11, 2026 18:22
- Split read-only clients (sync useMemo via createHTLCClient) from write
  clients (async useEffect requiring wallet) in atomicContext; polling
  hooks now use read-only clients so they never carry a stale client
  from a previous swap/chain
- Fix Solana recoverSwap: use Anchor EventParser for correct program
  attribution; fix all field accesses to snake_case (Anchor 0.30 preserves
  field names as-is); add null-guard in getUserLockDetails for non-Base58
  contract addresses
- Wrap getWalletClient in silent try-catch in useHTLCWriteClient to handle
  wagmi reconnection race condition (connector not ready yet)
- Add Starknet Sepolia to NetworkSettings.KnownSettings with explorer URLs
- Add mock quote for Starknet source chains in useFee.ts
- RecoverSwap: use all networks (drop hardcoded filter), extract
  isValidTxHash helper, increase dropdown height, add styled-scroll

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
yasha-meursault and others added 4 commits March 12, 2026 21:49
Record<caip2Id, IHTLCClient> map. Each network's client is managed
by its own effect, resolving staleness per-network and naturally
sharing one client when source and destination are on the same chain.
Also removes the resolveClient wrapper indirection and adds the
isProvidersReady guard to prevent creating write clients before
wagmi reconnection completes
Implement recoverSwap functions, resolves FRONT-900
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants